package com.lxk.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class TicketExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TicketExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTicketIdIsNull() {
            addCriterion("ticket_id is null");
            return (Criteria) this;
        }

        public Criteria andTicketIdIsNotNull() {
            addCriterion("ticket_id is not null");
            return (Criteria) this;
        }

        public Criteria andTicketIdEqualTo(Integer value) {
            addCriterion("ticket_id =", value, "ticketId");
            return (Criteria) this;
        }

        public Criteria andTicketIdNotEqualTo(Integer value) {
            addCriterion("ticket_id <>", value, "ticketId");
            return (Criteria) this;
        }

        public Criteria andTicketIdGreaterThan(Integer value) {
            addCriterion("ticket_id >", value, "ticketId");
            return (Criteria) this;
        }

        public Criteria andTicketIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ticket_id >=", value, "ticketId");
            return (Criteria) this;
        }

        public Criteria andTicketIdLessThan(Integer value) {
            addCriterion("ticket_id <", value, "ticketId");
            return (Criteria) this;
        }

        public Criteria andTicketIdLessThanOrEqualTo(Integer value) {
            addCriterion("ticket_id <=", value, "ticketId");
            return (Criteria) this;
        }

        public Criteria andTicketIdIn(List<Integer> values) {
            addCriterion("ticket_id in", values, "ticketId");
            return (Criteria) this;
        }

        public Criteria andTicketIdNotIn(List<Integer> values) {
            addCriterion("ticket_id not in", values, "ticketId");
            return (Criteria) this;
        }

        public Criteria andTicketIdBetween(Integer value1, Integer value2) {
            addCriterion("ticket_id between", value1, value2, "ticketId");
            return (Criteria) this;
        }

        public Criteria andTicketIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ticket_id not between", value1, value2, "ticketId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNull() {
            addCriterion("goods_id is null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNotNull() {
            addCriterion("goods_id is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualTo(Integer value) {
            addCriterion("goods_id =", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualTo(Integer value) {
            addCriterion("goods_id <>", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThan(Integer value) {
            addCriterion("goods_id >", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_id >=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThan(Integer value) {
            addCriterion("goods_id <", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("goods_id <=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIn(List<Integer> values) {
            addCriterion("goods_id in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotIn(List<Integer> values) {
            addCriterion("goods_id not in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("goods_id between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_id not between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andShopIdIsNull() {
            addCriterion("shop_id is null");
            return (Criteria) this;
        }

        public Criteria andShopIdIsNotNull() {
            addCriterion("shop_id is not null");
            return (Criteria) this;
        }

        public Criteria andShopIdEqualTo(Integer value) {
            addCriterion("shop_id =", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdNotEqualTo(Integer value) {
            addCriterion("shop_id <>", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdGreaterThan(Integer value) {
            addCriterion("shop_id >", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("shop_id >=", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdLessThan(Integer value) {
            addCriterion("shop_id <", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdLessThanOrEqualTo(Integer value) {
            addCriterion("shop_id <=", value, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdIn(List<Integer> values) {
            addCriterion("shop_id in", values, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdNotIn(List<Integer> values) {
            addCriterion("shop_id not in", values, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdBetween(Integer value1, Integer value2) {
            addCriterion("shop_id between", value1, value2, "shopId");
            return (Criteria) this;
        }

        public Criteria andShopIdNotBetween(Integer value1, Integer value2) {
            addCriterion("shop_id not between", value1, value2, "shopId");
            return (Criteria) this;
        }

        public Criteria andTicketNameIsNull() {
            addCriterion("ticket_name is null");
            return (Criteria) this;
        }

        public Criteria andTicketNameIsNotNull() {
            addCriterion("ticket_name is not null");
            return (Criteria) this;
        }

        public Criteria andTicketNameEqualTo(String value) {
            addCriterion("ticket_name =", value, "ticketName");
            return (Criteria) this;
        }

        public Criteria andTicketNameNotEqualTo(String value) {
            addCriterion("ticket_name <>", value, "ticketName");
            return (Criteria) this;
        }

        public Criteria andTicketNameGreaterThan(String value) {
            addCriterion("ticket_name >", value, "ticketName");
            return (Criteria) this;
        }

        public Criteria andTicketNameGreaterThanOrEqualTo(String value) {
            addCriterion("ticket_name >=", value, "ticketName");
            return (Criteria) this;
        }

        public Criteria andTicketNameLessThan(String value) {
            addCriterion("ticket_name <", value, "ticketName");
            return (Criteria) this;
        }

        public Criteria andTicketNameLessThanOrEqualTo(String value) {
            addCriterion("ticket_name <=", value, "ticketName");
            return (Criteria) this;
        }

        public Criteria andTicketNameLike(String value) {
            addCriterion("ticket_name like", value, "ticketName");
            return (Criteria) this;
        }

        public Criteria andTicketNameNotLike(String value) {
            addCriterion("ticket_name not like", value, "ticketName");
            return (Criteria) this;
        }

        public Criteria andTicketNameIn(List<String> values) {
            addCriterion("ticket_name in", values, "ticketName");
            return (Criteria) this;
        }

        public Criteria andTicketNameNotIn(List<String> values) {
            addCriterion("ticket_name not in", values, "ticketName");
            return (Criteria) this;
        }

        public Criteria andTicketNameBetween(String value1, String value2) {
            addCriterion("ticket_name between", value1, value2, "ticketName");
            return (Criteria) this;
        }

        public Criteria andTicketNameNotBetween(String value1, String value2) {
            addCriterion("ticket_name not between", value1, value2, "ticketName");
            return (Criteria) this;
        }

        public Criteria andTicketDescIsNull() {
            addCriterion("ticket_desc is null");
            return (Criteria) this;
        }

        public Criteria andTicketDescIsNotNull() {
            addCriterion("ticket_desc is not null");
            return (Criteria) this;
        }

        public Criteria andTicketDescEqualTo(String value) {
            addCriterion("ticket_desc =", value, "ticketDesc");
            return (Criteria) this;
        }

        public Criteria andTicketDescNotEqualTo(String value) {
            addCriterion("ticket_desc <>", value, "ticketDesc");
            return (Criteria) this;
        }

        public Criteria andTicketDescGreaterThan(String value) {
            addCriterion("ticket_desc >", value, "ticketDesc");
            return (Criteria) this;
        }

        public Criteria andTicketDescGreaterThanOrEqualTo(String value) {
            addCriterion("ticket_desc >=", value, "ticketDesc");
            return (Criteria) this;
        }

        public Criteria andTicketDescLessThan(String value) {
            addCriterion("ticket_desc <", value, "ticketDesc");
            return (Criteria) this;
        }

        public Criteria andTicketDescLessThanOrEqualTo(String value) {
            addCriterion("ticket_desc <=", value, "ticketDesc");
            return (Criteria) this;
        }

        public Criteria andTicketDescLike(String value) {
            addCriterion("ticket_desc like", value, "ticketDesc");
            return (Criteria) this;
        }

        public Criteria andTicketDescNotLike(String value) {
            addCriterion("ticket_desc not like", value, "ticketDesc");
            return (Criteria) this;
        }

        public Criteria andTicketDescIn(List<String> values) {
            addCriterion("ticket_desc in", values, "ticketDesc");
            return (Criteria) this;
        }

        public Criteria andTicketDescNotIn(List<String> values) {
            addCriterion("ticket_desc not in", values, "ticketDesc");
            return (Criteria) this;
        }

        public Criteria andTicketDescBetween(String value1, String value2) {
            addCriterion("ticket_desc between", value1, value2, "ticketDesc");
            return (Criteria) this;
        }

        public Criteria andTicketDescNotBetween(String value1, String value2) {
            addCriterion("ticket_desc not between", value1, value2, "ticketDesc");
            return (Criteria) this;
        }

        public Criteria andTicketTimespanIsNull() {
            addCriterion("ticket_timespan is null");
            return (Criteria) this;
        }

        public Criteria andTicketTimespanIsNotNull() {
            addCriterion("ticket_timespan is not null");
            return (Criteria) this;
        }

        public Criteria andTicketTimespanEqualTo(Integer value) {
            addCriterion("ticket_timespan =", value, "ticketTimespan");
            return (Criteria) this;
        }

        public Criteria andTicketTimespanNotEqualTo(Integer value) {
            addCriterion("ticket_timespan <>", value, "ticketTimespan");
            return (Criteria) this;
        }

        public Criteria andTicketTimespanGreaterThan(Integer value) {
            addCriterion("ticket_timespan >", value, "ticketTimespan");
            return (Criteria) this;
        }

        public Criteria andTicketTimespanGreaterThanOrEqualTo(Integer value) {
            addCriterion("ticket_timespan >=", value, "ticketTimespan");
            return (Criteria) this;
        }

        public Criteria andTicketTimespanLessThan(Integer value) {
            addCriterion("ticket_timespan <", value, "ticketTimespan");
            return (Criteria) this;
        }

        public Criteria andTicketTimespanLessThanOrEqualTo(Integer value) {
            addCriterion("ticket_timespan <=", value, "ticketTimespan");
            return (Criteria) this;
        }

        public Criteria andTicketTimespanIn(List<Integer> values) {
            addCriterion("ticket_timespan in", values, "ticketTimespan");
            return (Criteria) this;
        }

        public Criteria andTicketTimespanNotIn(List<Integer> values) {
            addCriterion("ticket_timespan not in", values, "ticketTimespan");
            return (Criteria) this;
        }

        public Criteria andTicketTimespanBetween(Integer value1, Integer value2) {
            addCriterion("ticket_timespan between", value1, value2, "ticketTimespan");
            return (Criteria) this;
        }

        public Criteria andTicketTimespanNotBetween(Integer value1, Integer value2) {
            addCriterion("ticket_timespan not between", value1, value2, "ticketTimespan");
            return (Criteria) this;
        }

        public Criteria andTicketRuleIsNull() {
            addCriterion("ticket_rule is null");
            return (Criteria) this;
        }

        public Criteria andTicketRuleIsNotNull() {
            addCriterion("ticket_rule is not null");
            return (Criteria) this;
        }

        public Criteria andTicketRuleEqualTo(String value) {
            addCriterion("ticket_rule =", value, "ticketRule");
            return (Criteria) this;
        }

        public Criteria andTicketRuleNotEqualTo(String value) {
            addCriterion("ticket_rule <>", value, "ticketRule");
            return (Criteria) this;
        }

        public Criteria andTicketRuleGreaterThan(String value) {
            addCriterion("ticket_rule >", value, "ticketRule");
            return (Criteria) this;
        }

        public Criteria andTicketRuleGreaterThanOrEqualTo(String value) {
            addCriterion("ticket_rule >=", value, "ticketRule");
            return (Criteria) this;
        }

        public Criteria andTicketRuleLessThan(String value) {
            addCriterion("ticket_rule <", value, "ticketRule");
            return (Criteria) this;
        }

        public Criteria andTicketRuleLessThanOrEqualTo(String value) {
            addCriterion("ticket_rule <=", value, "ticketRule");
            return (Criteria) this;
        }

        public Criteria andTicketRuleLike(String value) {
            addCriterion("ticket_rule like", value, "ticketRule");
            return (Criteria) this;
        }

        public Criteria andTicketRuleNotLike(String value) {
            addCriterion("ticket_rule not like", value, "ticketRule");
            return (Criteria) this;
        }

        public Criteria andTicketRuleIn(List<String> values) {
            addCriterion("ticket_rule in", values, "ticketRule");
            return (Criteria) this;
        }

        public Criteria andTicketRuleNotIn(List<String> values) {
            addCriterion("ticket_rule not in", values, "ticketRule");
            return (Criteria) this;
        }

        public Criteria andTicketRuleBetween(String value1, String value2) {
            addCriterion("ticket_rule between", value1, value2, "ticketRule");
            return (Criteria) this;
        }

        public Criteria andTicketRuleNotBetween(String value1, String value2) {
            addCriterion("ticket_rule not between", value1, value2, "ticketRule");
            return (Criteria) this;
        }

        public Criteria andTicketPriceIsNull() {
            addCriterion("ticket_price is null");
            return (Criteria) this;
        }

        public Criteria andTicketPriceIsNotNull() {
            addCriterion("ticket_price is not null");
            return (Criteria) this;
        }

        public Criteria andTicketPriceEqualTo(BigDecimal value) {
            addCriterion("ticket_price =", value, "ticketPrice");
            return (Criteria) this;
        }

        public Criteria andTicketPriceNotEqualTo(BigDecimal value) {
            addCriterion("ticket_price <>", value, "ticketPrice");
            return (Criteria) this;
        }

        public Criteria andTicketPriceGreaterThan(BigDecimal value) {
            addCriterion("ticket_price >", value, "ticketPrice");
            return (Criteria) this;
        }

        public Criteria andTicketPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ticket_price >=", value, "ticketPrice");
            return (Criteria) this;
        }

        public Criteria andTicketPriceLessThan(BigDecimal value) {
            addCriterion("ticket_price <", value, "ticketPrice");
            return (Criteria) this;
        }

        public Criteria andTicketPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ticket_price <=", value, "ticketPrice");
            return (Criteria) this;
        }

        public Criteria andTicketPriceIn(List<BigDecimal> values) {
            addCriterion("ticket_price in", values, "ticketPrice");
            return (Criteria) this;
        }

        public Criteria andTicketPriceNotIn(List<BigDecimal> values) {
            addCriterion("ticket_price not in", values, "ticketPrice");
            return (Criteria) this;
        }

        public Criteria andTicketPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ticket_price between", value1, value2, "ticketPrice");
            return (Criteria) this;
        }

        public Criteria andTicketPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ticket_price not between", value1, value2, "ticketPrice");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}